<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let arr = [{deviceNo: 2, id: 222}, {deviceNo: 3, id: 333}, {deviceNo: 4, id: 4444}, {deviceNo: 1, id: 111}]
    let brr = arr.sort((x, y) => {
        return
        x
    })

    console.log(brr)
</script>
</body>
</html>